<?php echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="keywords" content=""> 
		<meta name="description" content="">
		<title><?=$this->site()->getTitle()?></title>
        <?php echo $this->headMeta() ?> 
        <?php echo $this->headLink() ?> 
        <?php echo $this->headStyle() ?> 
        <?php echo $this->headScript() ?>  
        <style>

		</style>
	</head>

<body id="page">

	<div id="header">
		<h1><a href="/"><?=$this->site()->getLogo()?></a></h1>
		<div id="searchForm"><?=$this->search()?></div>
		<div class="menu">
			<ul>
				<?php foreach( $this->menu()->getItems('web_primary') as $item ):?>
				<li>
					<img class="imgPointer" src="/imgs/menu_marker.gif"/>
					<div><a href="<?=$this->menu()->getUrl($item )?>"><?=$item['title']?></a></div>
				</li>
				<?php endforeach;?>				
			</ul>
		</div>
	</div>

	<div id="content">
		<div id="center">
			<div id="leftMenu">
				<h3>Rubros</h3>
				<ul>
					<?php foreach( $this->taxonomy()->tree('Rubros') as $tax ):?>
					<li><a href="<?=$this->taxonomy()->getUrl( $tax['taxonomy_id'] )?>"><?=$tax['title']?></a></li>
					<?php endforeach;?>
				</ul>
			</div>
			<div id="mainContent">
			    <?php echo $this->extFlashMessenger()?>
                <?php echo $this->layout()->content ?>
			</div>
		</div>
	</div>
	
	<div id="footer"><?=$this->node()->getDescription( 17 )?></div>
	<script type="text/javascript">
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	</script>
	<script type="text/javascript">
	try {
	var pageTracker = _gat._getTracker("UA-11239721-1");
	pageTracker._trackPageview();
	} catch(err) {}</script>
</body>

</html>
